#added comment
from includes import *

from State import *
from gameState import *

class loadState(State):
	name="loadState()"
	def __init__(self):
		State.__init__(self)
		self.needsInit = 0
		self.screen = pygame.display.get_surface()
		self.menuFont = pygame.font.Font("data/fonts/bitstream.ttf", 16)
		self.menuFontSurface = self.menuFont.render("loadState()", 1, (255, 255, 255))
	def init(self):
		print "init() loadState"
		pygame.display.flip()
	def update(self):
		for e in pygame.event.get():
			if e.type is QUIT: self.run = 0
			if e.type is KEYDOWN and e.key == K_ESCAPE: self.run = 0
			if e.type is KEYDOWN and e.key == K_n: self.nextState = gameState(self.screen)	
	def draw(self):
		pygame.draw.rect(self.screen, (0, 0, 0), Rect(0, 0, 800, 600), 0)
		self.screen.blit(self.menuFontSurface, (0, 0))
		pygame.display.flip()
